package com.james.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: MybatisPlusConfig
 * @Author: JamesWang
 * @Date: 2021/4/21 20:43
 * @Description:
 * @Version:1.0
 */
@Configuration
@MapperScan(basePackages = {"com.james.mapper"})
public class MybatisPlusConfig {
    @Bean
    public PaginationInterceptor PaginationInterceptor() {
        return new PaginationInterceptor();
    }
}
